import React, {useState} from "react"
import { Form, Input, Button, Checkbox } from 'antd';

class Search extends React.Component {
	// constructor(props) {
	// 	super(props)
	// }
	onReset() {
		// const [form] = Form.useForm();
		// const onReset =()=>{
		// 	form.resetFields();
		// }
		console.log(111)
	}
	render() {
		return (
		<Form
			layout = "inline"
		>
			<Form.Item label="名称一"><Input/></Form.Item>
			<Form.Item label="名称二"><Input/></Form.Item>
			<Form.Item label="地址"><Input/></Form.Item>
			<Form.Item label="Email"><Input/></Form.Item>
			<Form.Item>
				<Button type="primary">搜索</Button>
				<Button htmlType="button" onClick={this.onReset.bind(this)} style={{marginLeft:"10px"}}>重置</Button>
			</Form.Item>
		</Form>)
	}
}
export default Search

